
package com.fx.apartment.modules.dynamic.mapper;

import com.fx.apartment.modules.dynamic.entity.Dynamic;
import com.fx.apartment.modules.dynamic.vo.DynamicVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 朋友圈动态 Mapper 接口
 *
 * @author QinXueFeng
 * @since 2021-04-19
 */
public interface DynamicMapper extends BaseMapper<Dynamic> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param dynamic
	 * @return
	 */
	List<DynamicVO> selectDynamicPage(IPage page, DynamicVO dynamic);

	Integer updateCommentNum(@Param("id") Long k, @Param("size")int size);

}
